using System;

namespace IBNet
{
   /// <summary>
   /// Current Server Time Event Arguments
   /// </summary>
   public class CurrentServerTimeEventArgs : EventArgs
   {
      private readonly DateTime serverTime;

      /// <summary>
      /// Creates a new CurrentServerTimeEventArgs.
      /// </summary>
      /// <param name="serverTime">The current server time.</param>
      public CurrentServerTimeEventArgs(DateTime serverTime)
      {
         this.serverTime = serverTime;
      }

      /// <summary>
      /// Gets the server time in UTC.
      /// </summary>
      public DateTime ServerTime
      {
         get { return serverTime; }
      }
   }
}